﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/EmployeeLayout.Master" AutoEventWireup="true" CodeBehind="UpdateProduct.aspx.cs" Inherits="DigitalAnts.Admin.UpdateProduct" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table>
    <tr>
        <td>Tên sản phẩm</td>
        <td><asp:TextBox ID="txt_product" runat="server" Width="150px"></asp:TextBox></td>
        <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                ControlToValidate="txt_product" ErrorMessage="*" ValidationGroup="txt"></asp:RequiredFieldValidator>
            </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator7" 
                ControlToValidate="txt_product" runat="server" 
                ValidationExpression="^[\s\S]{1,49}$" Text="Tên sản phẩm: 1-49 Ký Tự" 
                SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" /></td>
        <td>
                &nbsp;</td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>
                &nbsp;</td>
    </tr>
    <tr>
        <td>Hình ảnh</td>
        <td>
            <asp:FileUpload ID="fulavatar" runat="server" /></td>
        <td>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="fulavatar"
                ErrorMessage="không đúng định dạng." Display="Dynamic" ValidationGroup="txt"
                ValidationExpression=
                "^([0-9a-zA-Z_\-~ :\\])+(.jpg|.JPG|.jpeg|.JPEG|.bmp|.BMP|.gif|.GIF|.png|.PNG)$">
                </asp:RegularExpressionValidator>
            </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>Tên người dùng</td>
        <td>
            <asp:DropDownList ID="ddluser" runat="server" Width="150px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>AntiThiefDevice</td>
        <td>
            <asp:TextBox ID="txtAntiThiefDevice" runat="server" Width="150px"></asp:TextBox></td>
        <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                                ControlToValidate="txtAntiThiefDevice" ErrorMessage="*" ValidationGroup="txt"></asp:RequiredFieldValidator>
            </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
                &nbsp;</td>
    </tr>
    <tr>
        <td>Màu xe</td>
        <td><asp:TextBox ID="txt_color" runat="server" Width="150px"></asp:TextBox></td>
        <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                                ControlToValidate="txt_color" ErrorMessage="*" ValidationGroup="txt"></asp:RequiredFieldValidator>
            </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator8" 
                ControlToValidate="txt_color" runat="server" 
                ValidationExpression="^[\s\S]{1,49}$" Text="Màu xe: 1-49 Ký Tự" 
                SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" /></td>
        <td>
                &nbsp;</td>
    </tr>
    <tr>
        <td>Tình trạng</td>
        <td><asp:TextBox ID="txtisnew" runat="server" Width="150px"></asp:TextBox>%</td>
        <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                                ControlToValidate="txtisnew" ErrorMessage="*" ValidationGroup="txt"></asp:RequiredFieldValidator>
            </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
                <asp:RegularExpressionValidator ID="regEM4" runat="server" 
                                                    ControlToValidate="txtisnew" ErrorMessage="IsNe wình trạng phải là số." 
                                                    SetFocusOnError="True" 
                ValidationExpression="^\d+$" ValidationGroup="txt"></asp:RegularExpressionValidator>
            </td>
        <td>
                &nbsp;</td>
    </tr>
    <tr>
        <td>Hãng sản xuất</td>
        <td>
            <asp:DropDownList ID="ddlProducer" runat="server" Width="150px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator9" 
                ControlToValidate="txt_price" runat="server" 
                ValidationExpression="^[\s\S]{1,49}$" Text="Giá: 1-10 Ký Tự" 
                SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" /></td>
    </tr>
    <tr>
        <td>Giá</td>
        <td><asp:TextBox ID="txt_price" runat="server" Width="150px"></asp:TextBox></td>
        <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                                                ControlToValidate="txt_price" ErrorMessage="*" ValidationGroup="txt"></asp:RequiredFieldValidator>
            </td>
    </tr>
    <tr>
            <td>&nbsp;</td>
            <td>
                <asp:RegularExpressionValidator ID="regEM3" runat="server" 
                                                    ControlToValidate="txt_price" ErrorMessage="Giá phải là số." 
                                                    SetFocusOnError="True" ValidationExpression="^\d+$" ValidationGroup="txt"></asp:RegularExpressionValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    <tr>
        <td>Km đã đi</td>
        <td><asp:TextBox ID="txt_km" runat="server" Width="150px"></asp:TextBox></td>
        <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                                ControlToValidate="txt_km" ErrorMessage="*" ValidationGroup="txt"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                                    ControlToValidate="txt_km" ErrorMessage="Kilomet phải là số." 
                                                    SetFocusOnError="True" ValidationExpression="^\d+$" ValidationGroup="txt"></asp:RegularExpressionValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    <tr>
        <td>Thành phố</td>
        <td>
            <asp:DropDownList ID="ddlcity" runat="server" Width="150px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>Nhiên liệu</td>
        <td>
            <asp:DropDownList ID="ddlfuel" runat="server" Width="150px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Label ID="lbl_mess" runat="server" Text="" ForeColor="Red"></asp:Label></td>
    </tr>
    <tr>
        <td colspan="2" align="right">
            <asp:Button ID="btt_update" runat="server" Text="Update" 
                onclick="btt_update_Click" ValidationGroup="txt"/></td>
    </tr>
</table>
    <asp:HiddenField ID="HiddenField1" runat="server" />
</asp:Content>
